﻿using System;
using System.Threading;

namespace Jacobi.ComponentModel.Decomposition
{
    partial class PipesAndFiltersEngine
    {
        /// <summary>
        /// Data structure that is passed to the <see cref="Task"/> that executes each filter.
        /// </summary>
        private class TaskData
        {
            public TaskData(IOperation operation, CancellationToken cancelToken)
            {
                Operation = operation;
                CancellationToken = cancelToken;
            }

            public IOperation Operation { get; private set; }
            public CancellationToken CancellationToken { get; private set; }
        }
    }
}
